<?php /* Smarty version Smarty-3.1.21-dev, created on 2015-11-03 14:46:17
         compiled from "H:\WebApplication\myconpany\sumi_mobile\application\views\entrust\setptow.html" */ ?>
<?php /*%%SmartyHeaderCode:28591562f37bd412b77-23222881%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '76a81d8432fa528b3395b37717314889eac09d38' => 
    array (
      0 => 'H:\\WebApplication\\myconpany\\sumi_mobile\\application\\views\\entrust\\setptow.html',
      1 => 1446533173,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '28591562f37bd412b77-23222881',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_562f37bd5782d9_75560178',
  'variables' => 
  array (
    'conpanyinfo' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_562f37bd5782d9_75560178')) {function content_562f37bd5782d9_75560178($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/header.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!--header stop-->
<?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/common/headertitle.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!--header end-->
<section class="box-user">
    <img src="/images/stp2.png" width="100%" class="fl"/>
    <form method="post" target="_self"  name="entrust" id="entrust" action="/entrust/setpthree">
    <div class="purchase2">
        <input class="purchase_w2 pct" type="text" name="business_name" readonly ="readonly " value="<?php echo $_smarty_tpl->tpl_vars['conpanyinfo']->value['business_name'];?>
"/>
        <input class="purchase_w2 pct" type="text" name="mobile" readonly ="readonly " value="<?php echo $_smarty_tpl->tpl_vars['conpanyinfo']->value['mobile'];?>
"/>
        <input class="purchase_w2 pct" type="text" name="contacts" readonly ="readonly " value="<?php echo $_smarty_tpl->tpl_vars['conpanyinfo']->value['contacts'];?>
"/>
        <p class="fwb pt10p pl10p">商品信息：</p>
        <div class="purchase">
            <textarea class="purchase_w1 pct1" id="content" name="content" placeholder="如:HDPE 7000F伊朗石化 20吨 9578元/吨 上海。"></textarea>
            </div>
    </div>
    <div class="purchase1">
        <input class="purchase_w4 up_but" type="button" value="上一步"/><input class="purchase_w5 btn_em" type="button" value="提交订单"/>
    </div>
       </form>
</section>


<?php echo '<script'; ?>
 type="text/javascript">
    $(function(){

        $(".up_but").click(function(){
            window.history.back();
        });


        $('.btn_em').click(function(){
            if(nEmpty($("#content"),'商品信息不能为空！','请输入合理的商品信息！','请输入合理的商品信息!','公司名称填写正确！')==false){
                return false;
            }else {
                document.getElementById("entrust").submit();
            }
        });


        function nEmpty(obj,txt1,txt2,txt3,txt4){
            Value = obj.val();
            if(Value==''){
                alert(txt1);
                return false;
            }else if(Value.length<10||Value.length>=200){
                alert(txt2);
                return false;
            }else if(!isNaN(obj.val())){
                alert(txt3);
                return false;
            }else{
                return true;
            }
        }


        $('#content').blur(function(){
            nEmpty($("#content"),'商品信息不能为空！','请输入合理的商品信息！','请输入合理的商品信息!','公司名称填写正确！')
        });


    });
<?php echo '</script'; ?>
>



<?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/common/footerlogin.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


<?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/footer.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php }} ?>
